package com.ckf.mall;

import com.ckf.mall.service.OrdersService;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.io.IOException;

public class MainApplication {

    @SuppressWarnings("resource")
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("consumer.xml");
        OrdersService orderService = applicationContext.getBean(OrdersService.class);
        orderService.initOrder("1");
        System.out.println("调用成功....");
        System.in.read();
    }

}
